package com.gamecollection.minesweeper;

import com.gamecollection.mvc.GameEngine;
import com.gamecollection.minesweeper.controller.MinesweeperController;
import com.gamecollection.minesweeper.model.MinesweeperModel;
import com.gamecollection.minesweeper.view.MinesweeperView;

/**
 * 扫雷游戏主类
 */
public class MinesweeperGame {
    
    public static void main(String[] args) {
        // 创建MVC组件
        MinesweeperModel model = new MinesweeperModel();
        MinesweeperView view = new MinesweeperView(model);
        MinesweeperController controller = new MinesweeperController(model);
        
        // 创建游戏引擎
        GameEngine engine = new GameEngine(model, view, controller, 
            model.getWidth(), model.getHeight(), "扫雷");
        
        // 启动游戏
        engine.launch();
    }
} 